<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Tipask's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset={APP_CHARSET}">
<link media="all" type="text/css" href="css/admin/admincp.css" rel="stylesheet" />
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/admin.js" type="text/javascript"></script>
<script src="js/calendar.js" type="text/javascript"></script>
</head>

<body>

<div id="append">
</div>

<div class="container">
	<!--{if isset($message)}-->
		<!--{eval $type=isset($type)?$type:'correctmsg'; }-->
		<div class="{$type}"><p>{$message}</p></div>
	<!--{/if}-->

<form action="index.php?c=admin_field&a=edit&id={$userfield['id']}" method="post">

<table  width="100%"  border="1"   cellpadding="1" cellspacing="1" align="center">
    <tr>
      <td colspan="2" >所有填写的内容不允许包含双引号[<strong>"</strong>]，否则配置将无法写入。</td>
    </tr>
    <tr>
      <td ><strong>提示文字：</strong><br>注册修改时显示的提示文字 </td>
      <td ><input name="title" type="text"   value="{$userfield['title']}" >*</td>
    </tr>
    <tr>
      <td width="28%" ><strong>字段名称：</strong><br>只能用英文字母或数字，数据表的真实字段名 </td>
      <td width="72%" ><input name="name" type="text"  value="{$userfield['name']}" >* </td>
    </tr>
    <tr>
      <td ><strong>数据类型：</strong></td>
      <td >
		<div class="nw"><input type="radio" class="np" name="type"  value="text" {if 'text'==$userfield['type']}checked{/if} >单行文本</div>
		<div class="nw"><input type="radio" class="np" name="type"  value="multitext" {if 'multitext'==$userfield['type']}checked{/if}>多行文本</div>
		<div class="nw"><input type="radio" class="np" name="type"  value="datetime" {if 'datetime'==$userfield['type']}checked{/if}>时间类型</div>
		<div class="nw"><input type="radio" class="np" name="type"  value="address" {if 'address'==$userfield['type']}checked{/if}>地址类型</div>
		<div class="nw"><input type="radio" class="np" name="type"  value="select" {if 'select'==$userfield['type']}checked{/if}>使用option下拉框</div>
		<div class="nw"><input type="radio" class="np" name="type"  value="radio" {if 'radio'==$userfield['type']}checked{/if}>使用radio选项卡</div>
		<div class="nw"><input type="radio" class="np" name="type"  value="checkbox" {if 'checkbox'==$userfield['type']}checked{/if}>Checkbox多选框</div>
     </td>
    </tr>
    <tr>
      <td ><strong>默认值：</strong><br>如果定义数据类型为select、radio、checkbox时，此处填写被选择的项目(用“,”分开，如“男,女,人妖”)。 </td>
      <td ><textarea name="default" type="text"  style="width:70%;height:60px">{$userfield['default']}</textarea></td>
    </tr>
    <tr>
      <td ><strong>最大长度：</strong><br>文本数据必须填写   </td>
      <td ><input name="maxlength" type="text"  value="{$userfield['maxlength']}" style="width:80px;"></td>
    </tr>

    <tr>
      <td ><strong>字段状态：</strong></td>
      <td >
		<input name="state" type="radio"  value="1" {if $userfield['state']}checked{/if} >启用 &nbsp;
		<input name="state" type="radio" value="0"  {if !$userfield['state']}checked{/if}  >禁用 
	</td>
    </tr>
    <tr>
      <td height="28" colspan="2" bgcolor="#F9FDF0"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tbody><tr>
            <td width="26%" height="45">&nbsp;</td>
            <td width="10%"><input type="submit" name="submit"   value="确定" class="btn"></td>
            <td><input type="reset" name="reset"  value="重置" class="btn"></td>
          </tr>
        </tbody></table></td>
    </tr>
  
</tbody></table>
</form>
</div>

</body>
</html>
